﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Interface
{
    /// <summary>
    /// 标准退件
    /// </summary>
    public class RE_ReqDTO_Return
    {
        /// <summary>
        ///ID
        /// </summary>
        public string RowId { get; set; }
        /// <summary>
        ///退件跟踪号，多个使用;号分隔，如：T001;T002或者传数组，如：["T001", "T002"]
        /// </summary>
        public string tracking_no { get; set; }
        /// <summary>
        ///仓库编码
        /// </summary>
        public string warehouse_code { get; set; }
        /// <summary>
        ///退件类型：S买家退件，L物流退件，C认领退件
        /// </summary>
        public string return_type { get; set; }
        /// <summary>
        ///确认审核：1确认，0草稿
        /// </summary>
        public string verify { get; set; }
        /// <summary>
        ///参考号，不能超过32个字符
        /// </summary>
        public string reference_no { get; set; }
        /// <summary>
        ///原订单号；(S类型必填)
        /// </summary>
        public string order_code { get; set; }
        /// <summary>
        ///认领单号；(C类型必填)
        /// </summary>
        public string claim_code { get; set; }
        /// <summary>
        ///预计到达日期
        /// </summary>
        public string expected_date { get; set; }
        /// <summary>
        ///退件原因，不能超过255个字符
        /// </summary>
        public string return_desc { get; set; }
        /// <summary>
        ///	退件说明
        /// </summary>
        public string operation_desc { get; set; }
        /// <summary>
        ///买家名字，不能超过64个字符
        /// </summary>
        public string buyer_name { get; set; }
        /// <summary>
        ///买家税号，不能超过64个字符
        /// </summary>
        public string buyers_ein { get; set; }
        /// <summary>
        ///卖家店铺，不能超过100个字符
        /// </summary>
        public string seller_store { get; set; }

        public string ResultMsg { get; set; }
        /// <summary>
        ///明细信息
        /// </summary>
        public List<Items> items { get; set; }

        public class Items
        {
            /// <summary>
            ///SKU
            /// </summary>
            public string product_sku { get; set; }
            /// <summary>
            ///数量
            /// </summary>
            public int quantity { get; set; }
            /// <summary>
            ///处理方式：1:重新上架 2:退回国内 3:不良品 4:销毁 5:待检查 6:换标 8:产品升级 9:直接销毁
            /// </summary>
            public string process { get; set; }
            /// <summary>
            ///备注说明
            /// </summary>
            public string note { get; set; }

        }

    }


    /// <summary>
    /// 回邮退件
    /// </summary>
    public class RE_ReqDTO_Return2
    {

        /// <summary>
        ///参考号，不一定是仓库订单号，可以是任意单号，不能超过32个字符
        /// </summary>
        public string reference_no { get; set; }
        /// <summary>
        ///标记是回邮退件单，固定填写：1
        /// </summary>
        public string return_identification { get; set; }
        /// <summary>
        ///仓库编码
        /// </summary>
        public string warehouse_code { get; set; }
        /// <summary>
        ///确认审核：1确认，0草稿
        /// </summary>
        public string verify { get; set; }
        /// <summary>
        ///物流产品代码，来源于WMS物流产品管理，仅支持启用了回邮退件使用的物流产品代码
        /// </summary>
        public string sm_code { get; set; }
        /// <summary>
        ///退件原因，不能超过255个字符
        /// </summary>
        public string return_desc { get; set; }
        /// <summary>
        ///退件说明
        /// </summary>
        public string operation_desc { get; set; }
        /// <summary>
        ///明细信息
        /// </summary>
        public List<Items> items { get; set; }

        public class Items
        {
            /// <summary>
            ///SKU
            /// </summary>
            public string product_sku { get; set; }


            /// <summary>
            ///数量
            /// </summary>
            public int quantity { get; set; }

            /// <summary>
            ///处理方式：1:重新上架 2:退回国内 3:不良品 4:销毁 5:待检查 6:换标 8:产品升级 9:直接销毁
            /// </summary>
            public string process { get; set; }
            /// <summary>
            ///备注说明
            /// </summary>
            public string note { get; set; }

        }
        /// <summary>
        ///寄件人信息
        /// </summary>
        public Sender_Info sender_info { get; set; }

        public class Sender_Info
        {
            /// <summary>
            ///寄件人姓名
            /// </summary>
            public string sender_name { get; set; }
            /// <summary>
            ///寄件人公司
            /// </summary>
            public int sender_company { get; set; }
            /// <summary>
            ///	国家二字简码，如中国（CN），美国（US
            /// </summary>
            public int sender_country { get; set; }
            /// <summary>
            ///邮箱
            /// </summary>
            public int sender_email { get; set; }
            /// <summary>
            ///联系电话
            /// </summary>
            public int sender_phone { get; set; }
            /// <summary>
            ///城市
            /// </summary>
            public int sender_city { get; set; }
            /// <summary>
            ///省/州 (SPECIAL_ORDER_STATE_REQUIRED 配置项控制是否必填)
            /// </summary>
            public int sender_state { get; set; }
            /// <summary>
            ///邮编
            /// </summary>
            public int sender_zipcode { get; set; }
            /// <summary>
            ///地址1
            /// </summary>
            public int sender_address1 { get; set; }
            /// <summary>
            ///地址2
            /// </summary>
            public int sender_address2 { get; set; }
            /// <summary>
            ///门牌号
            /// </summary>
            public int sender_doorplate { get; set; }
        }
    }
}
